import Vue from 'vue'
import VueI18n from 'vue-i18n'

Vue.use(VueI18n)

//自定义翻译包
import en from './en'
import zh from './zh'


let locale = sessionStorage.getItem('locale') || ''

if (locale == '') {
    locale = 'en'
    sessionStorage.setItem('locale', locale)
}

export default new VueI18n({
    locale: locale,
    messages: {
        en,
        zh,
    }
})
